@extends('layout/default')

@section('content')
<style>
    .create {
        line-height: 30px;
    }

    .create input {
        margin: 5px 0px;
    }
</style>
<div class="container ">
    <div clas="row ">
        <form method="post">
            <input type="hidden" name="_token" value="{{csrf_token()}}"/>
            <input type="hidden" name="SSCustomerID" value="{{Session::get('customer_id')}}">

            <div class="col-xs-12 img-thumbnail list-group-item">
                <div class="row create">
                    <div class="col-xs-12">标题</div>
                    <div class="col-xs-12"><input type="text" class="form-control" name="SSTitle" placeholder="请输入标题"
                                                 required="required"
                                                 value="{{isset($datas['SSTitle'])?$datas['SSTitle']:''}}"/></div>
                    <div class="col-xs-12">场地</div>
                    <div class="col-xs-12"><input type="text" class="form-control" name="SSSpaceID" placeholder="请输入场地"
                                                 required="required"
                                                 value="{{isset($datas['SSSpaceID'])?$datas['SSSpaceID']:''}}"/></div>
                    <div class="col-xs-12">付款</div>
                    <div class="col-xs-12">
                        <select name="SSPayType" class="form-control">
                            <option value="1">我请客</option>
                            <option value="2">求请客</option>
                            <option value="3">AA付款</option>
                        </select>
                    </div>
                    <div class="col-xs-12">时间</div>
                    <div class="col-xs-12"><input type="text" class="form-control" name="SSBeginAT"
                                                 placeholder="请选择时间"
                                                 id="SSBeginAT" required="required" readonly=""
                                                 value="{{isset($datas['SSBegainAT'])?$datas['SSBegainAT']:''}}"/></div>
                    <div class="col-xs-12">人数</div>
                    <div class="col-xs-12"><input type="text" class="form-control" name="SSLimit" placeholder="人数限制，0无限制"
                                                 value="{{isset($datas['SSLimit'])?$datas['SSLimit']:''}}"/></div>
                    <div class="col-xs-12">留言</div>
                    <div class="col-xs-12"><textarea style="width:100%;height: 100px;" name="SSMessage">{{isset($datas['SSMessage'])?$datas['SSMessage']:''}}</textarea>
                    </div>
                    <!--                    <div class="col-xs-12">电话</div>-->
                    <!--                    <div class="col-xs-12"><input type="text" class="form-control" name="fmobile"-->
                    <!--                                                 placeholder="请填写联系电话"-->
                    <!--                                                 id="fmobile" required="required"-->
                    <!--                                                 value="{{isset($datas['fmobile'])?$datas['fmobile']:''}}"/></div>-->
                    <!--                    <div class="col-xs-12">联系人</div>-->
                    <!--                    <div class="col-xs-12"><input type="text" class="form-control" name="flinkman"-->
                    <!--                                                 placeholder="请填写联系人"-->
                    <!--                                                 id="flinkman" required="required"-->
                    <!--                                                 value="{{isset($datas['flinkman'])?$datas['flinkman']:''}}"/></div>-->
                    <div class="col-xs-12"></div>
                    <div class="col-xs-12">
                        <button class="btn btn-xs btn-default">发起拼场</button>
                    </div>
                </div>
            </div>
        </form>
    </div>

</div>
@endsection
@section('scripts')
<script>
    $(function () {
        $("#SSBeginAT").datetimepicker({
            format: 'yyyy-mm-dd',
            language: 'zh-CN',
            minView: 'month',
            startView: 'month'
        });
                @if (isset($today))
            $('#SSBeginAT').datetimepicker('setStartDate', "{{$today}}");
                @endif
    });

</script>
@endsection
